<!--
 * @Author:
 * @Date: 2022-06-15 15:53:36
 * @LastEditTime: 2022-06-19 20:37:48

-->
<div>
  <Navbar [icon]="icon" (onLeftClick)="onLeftClick()">
    返回
  </Navbar>

  <ng-template #icon>
    <Icon [type]="'left'"></Icon>
  </ng-template>
  <div class="pt-4">
    <InputItem
      [clear]="true"
      [placeholder]="'标题'"
      [moneyKeyboardAlign]="'left'"
      [content]="'标题'"
      [(ngModel)]="post.title"
    >
    </InputItem>
    <InputItem
      [clear]="true"
      [placeholder]="'校区'"
      [moneyKeyboardAlign]="'left'"
      [content]="'校区'"
      [(ngModel)]="post.campus"
    >
    </InputItem>
    <InputItem
      [clear]="true"
      [placeholder]="'食品描述'"
      [moneyKeyboardAlign]="'left'"
      [content]="'食品描述'"
      [(ngModel)]="post.foodDescription"
    >
    </InputItem>
    <InputItem
      [clear]="true"
      [placeholder]="'校外地点'"
      [moneyKeyboardAlign]="'left'"
      [content]="'校外地点'"
      [(ngModel)]="post.outAddress"
    >
    </InputItem>
    <InputItem
      [clear]="true"
      [placeholder]="'碰头地点'"
      [moneyKeyboardAlign]="'left'"
      [content]="'校内约定地点'"
      [(ngModel)]="post.inAddress"
    >
    </InputItem>
    <InputItem
      [clear]="true"
      [placeholder]="'约定时间'"
      [moneyKeyboardAlign]="'left'"
      [content]="'约定时间'"
      [(ngModel)]="post.appointedTime"
    >
    </InputItem>
    <div class="pt-2 pb-2 pl-8 -ml-4 text-sm text-gray-500 bg-gray-100">Tizen内容</div>
    <InputItem
      [clear]="true"
      [placeholder]="'4-20字关键词'"
      [moneyKeyboardAlign]="'left'"
      [content]="'关键词'"
      [(ngModel)]="post.keyWord"
    >
    </InputItem>
    <TextareaItem
      [placeholder]="'详情'"
      [autoFocus]="true"
      [title]="''"
      [rows]="5"
      [autoHeight]="true"
      [(ngModel)]="post.content"
    ></TextareaItem>
    <!--    <div class="pt-2 pb-2 pl-8 -ml-4 text-sm text-gray-500 bg-gray-100">上传图片</div>-->
    <!--    <ImagePicker-->
    <!--      [files]="files"-->
    <!--      [multiple]="multipleTab === 1"-->
    <!--      [selectable]="files.length < 5"-->
    <!--      (onChange)="fileChange($event)"-->
    <!--      (onImageClick)="imageClick($event)"-->
    <!--    ></ImagePicker>-->
    <div class="flex flex-row items-center justify-center w-full h-40 text-sm bg-gray-100">
      <div class="w-full ml-10 mr-10 tracking-tight">
        <div [type]="'primary'" Button (onClick)="sendPost()">发布信息</div>
      </div>
    </div>

  </div>
</div>
